Page({
  data: {
    system:''
  },
  onLoad(options) {
    let that =this
    that.xGetSystem()
  },
  // 获取当前系统信息
  xGetSystem(){
    let that = this
    wx.getSystemInfo({
      success (res) {
        that.setData({
          system:res.system.match('Android') ? 'Android': 'IOS'
        })
        if(that.data.system=='IOS'){
          wx.setClipboardData({
            data: 'https://muheal.cn/DesktopShortcut',
            success (res) {
              wx.hideToast()
            }
          })
        }
      }
    })
  },
  xHide:function(){
    wx.navigateBack({
      delta:1
    })
  }
})